Fix waypoint transformation for routes and tracks.
authoroliskoli <oliskoli>
Sun, 12 Nov 2006 07:42:26 +0000 (07:42 +0000)
committeroliskoli <oliskoli>
Sun, 12 Nov 2006 07:42:26 +0000 (07:42 +0000)
transform.c

index c52843c3267759390fd7882190fb630de4843c49..9d47f436086bb9894ba0580956c473d6800c1772 100644 (file)
@@ -98,7 +98,12 @@ static void
 transform_any_disp_wpt_cb(const waypoint *wpt)
 {
        waypoint *temp = waypt_dupe(wpt);
-       waypt_add(temp);
+       if (current_target == 'R')
+               route_add_wpt(current_rte, temp);
+       else if (current_target == 'T')
+               track_add_wpt(current_trk, temp);
+       else
+               waypt_add(temp);
 }
 
 static void